import request from '@/utils/request'

const prevUrl = '/device/';

export default {
  // 查询列表
  list(query, pageReq) {
    return request({
      url: `${prevUrl}list`,
      method: 'post',
      data: query,
      params: pageReq
    })
  },
  // 盘点
  inventory: function(uuid) {
    return request({
      url: `/rfid/inventory/${uuid}`,
      method: 'put'
    })
  },
  stopInventory: function(uuid) {
    return request({
      url: `/rfid/stopInventory/${uuid}`,
      method: 'put'
    })
  },
  // 查询资产清单表列表
  getAssetByRfid(tag) {
    return request({
      url: `/wms/assetItem/getAssetByRfid/${tag}`,
      method: 'get'
    })
  },
}

